{extend name="base" /}

{block name="title"}我要刷单{/block}

{block name="main"}
<div class="main">
	<div class="container">
		
		<div class="wdyy">
			<div class="tis_box clearfix">
				<p>网友通过推广网址注册会员并成功任务时你将获得积分收益！！</p>
			</div>
			<div class="tglj">
				<span>推广链接</span>
				<input type="text" value="{$Think.server.request_scheme}://{$Think.server.http_host}/promotion/register?promotion_username={$Think.session.user_name}" />
			</div>
			<div class="yytj_box">
				<p class="color_red">你还可以推广 <span>1000</span>个用户！</p>
			</div>
		</div>

		{volist name="promotions" id="promotion" key="k"}
		<div class="qd_box">
			<div class="table_modal">
				<div class="tab_title clearfix">
					<p class="float_l">{$k}级用户</p>
					<p class="float_r">推广用户成功任务获得收益提成：<span>{$layers[$k]}</span></p>
				</div>

				<div class="qd_table_box">
					<div class="table-responsive">
					  	<table class="table text-center table-bordered">
					    	<tr>
					    		<th>推广用户</th>
					    		<th>时间</th>
					    		<th>用户来源</th>
					    	</tr>
					    	{volist name="promotion" id="user"}
					    	<tr>
					    		<td>{$user.username}</td>
					    		<td>{$user.createtime|date='Y-m-d H:i:s',###}</td>
					    		<td>推荐</td>
					    	</tr>
					    	{/volist}
					  	</table>
					</div>
				</div>

			</div>
		</div>
		{/volist}
	</div>
</div>
{/block}